Pod::Spec.new do |s|
  s.name              = "commonThirds"
  s.version           = "1.0.0"
  s.summary           = "管理所有第三方组件库."
  s.homepage          = "http://liushan@192.168.1.11:9000/svn/segi_c/ios/commonThirds"
  s.license           = "MIT"
  s.author            = { "山刘" => "liushan@segimail.com" }
  # s.source            = { :path => "/Users/shanliu/Desktop/UhomeModules/commonThirds-trunk/commonThirds.podspec"}
  # s.source            = { :svn => "http://192.168.1.11:9000/svn/segi_c/ios/commonThirds", :tag => "#{s.version}"}

  s.source            = { :git => "http://gitlab.uhomecp.com:9200/jingjie/commonthirds.git"}

  s.static_framework  = true
  s.requires_arc      = true
  s.platform          = :ios, "8.0"    
  s.dependency "CommonMediator"

  # 第三方库-QQSDK
  s.subspec 'TencentOpenAPI'do|ten|
    # ten.source_files = 'commonThirds/Class/TencentOpenApi/**/*' # 子模块源数据文件
    # ten.public_header_files = 'commonThirds/Class/TencentOpenApi/**/*.h'  # 公共头文件。在这个属性中声明过的.h文件能够使用<>方法联想调用（这个是可选属性）

    ten.vendored_frameworks = 'commonThirds/Class/TencentOpenApi/TencentOpenAPI.framework'  #  源文件中国呢的自定义静态库(.framework)
    ten.resource = 'commonThirds/Class/TencentOpenApi/TencentOpenApi_IOS_Bundle.bundle'
    ten.frameworks = 'SystemConfiguration', 'Security', 'CoreGraphics', 'CoreTelephony' # 系统库(.framework)
    ten.libraries = "stdc++", "z", "iconv", "sqlite3" # 系统库(.tbd)z表示libz.tdb,后缀不需要,lib开头的省略lib
  end

  # 第三方库-CCLocation
  s.subspec 'CCLocation'do|ccl|
    ccl.source_files = 'commonThirds/Class/CCLocation/**/*' # 子模块源数据文件
    ccl.public_header_files = 'commonThirds/Class/CCLocation/**/*.h'  # 公共头文件。在这个属性中声明过的.h文件能够使用<>方法联想调用（这个是可选属性）
  end

  # 第三方库-SEGWindmill
  s.subspec 'SEGWindmill'do|win|
    win.source_files = 'commonThirds/Class/SEGWindmill/**/*' # 子模块源数据文件
    win.public_header_files = 'commonThirds/Class/SEGWindmill/**/*.h'  # 公共头文件。在这个属性中声明过的.h文件能够使用<>方法联想调用（这个是可选属性）

    win.dependency 'Commom/SEGTools/YYBase'
    win.dependency 'Commom/SEGColor'
    win.dependency 'Commom/ThirdNibs/SEGonry'
  
  end

  # 第三方库-SEGMobClick
  s.subspec 'SEGMobClick'do|mobc|
    mobc.source_files = 'commonThirds/Class/SEGMobClick/**/*' # 子模块源数据文件
    mobc.public_header_files = 'commonThirds/Class/SEGMobClick/**/*.h'  # 公共头文件。在这个属性中声明过的.h文件能够使用<>方法联想调用（这个是可选属性）
    mobc.dependency 'UMCCommon', '~> 7.2.5'  # 有盟统计
    mobc.dependency 'UMDevice', '~> 1.1.0'  # 有盟统计
    mobc.dependency 'Commom/SEGTools/SEGAspect'
  end  

   # SEG第三方库-防止程序crash
  s.subspec 'QYCrashProtector' do |pro|
    pro.source_files = 'commonThirds/Class/QYCrashProtector/**/*' # 子模块源数据文件
    pro.public_header_files = 'commonThirds/Class/QYCrashProtector/**/*.h'  # 公共头文件。在这个属性中声明过的.h文件能够使用<>方法联想调用（这个是可选属性）
  end  

  # SEG第三方库-相册选取,裁剪
  s.subspec 'SEGImagePickerManager' do |pic|
    pic.source_files = 'commonThirds/Class/SEGImagePickerManager/**/*.{h,m}' # 子模块源数据文件
    pic.public_header_files = 'commonThirds/Class/SEGImagePickerManager/**/*.h'  # 公共头文件。在这个属性中声明过的.h文件能够使用<>方法联想调用（这个是可选属性）
    pic.resource = "commonThirds/Class/SEGImagePickerManager/TZImagePickerController/TZImagePickerController.bundle"
  end
  
  s.subspec 'QYTextView'do|ahc|
    ahc.source_files = 'commonThirds/Class/QYTextView/**/*' # 子模块源数据文件
    ahc.public_header_files = 'commonThirds/Class/QYTextView/**/*.h'  # 公共头文件。在这个属性中声明过的.h文件能够使用<>方法联想调用（这个是可选属性）
  end
  # 检测spec合法性：pod lib lint --allow-warnings --use-libraries --private --sources=http://192.168.1.11:9000/svn/segi_c/ios/SVNSpecs
  # pod repo-svn lint commonThirds.podspec --allow-warnings --use-libraries --sources='http://192.168.1.11:9000/svn/segi_c/ios/SVNSpecs,https://github.com/CocoaPods/Specs'
  
end

# pod spec lint --sources='https://github.com/CocoaPods/Specs.git,http://gitlab.uhomecp.com:9200/jingjie/segpodrepo.git' --no-clean --verbose --skip-import-validation --fail-fast --use-libraries  --use-libraries --allow-warnings --subspec=commonThirds/TencentOpenAPI
# pod repo push segrepo  commonThirds.podspec --allow-warnings --use-libraries --sources='https://github.com/CocoaPods/Specs.git,http://gitlab.uhomecp.com:9200/jingjie/segpodrepo.git' --skip-tests --verbose 













